tools/libxl: Code-gen improvements for libxl_save_msgs_gen.pl
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Dec 2019 12:42:47 +0000 (12:42 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 Jan 2020 15:16:23 +0000 (15:16 +0000)
commitd3d86f711a339ed1a875e25ae456e90059eb18bb
treeb7ef67b8844adbd36a9229ed28df8710de8c0d94
parent44d6e5b2d3c604e2603ab3a5c05d8dfb5b403e12
tools/libxl: Code-gen improvements for libxl_save_msgs_gen.pl

our @msgs() is an array of $msginfo's where the first element is a
unique number.  The $msgnum_used check ensures they are unique.  Instead
if specifying them explicitly, generate msgnum locally.  This reduces
the diff necessary to edit the middle of the @msgs() array.

All other hunks are adjusting formatting in the generated C, to make it
easier to follow.

No change in behaviour of the generated C.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libxl/libxl_save_msgs_gen.pl